cmake_minimum_required(VERSION 3.22.1)
project("Algui")
add_library(${CMAKE_PROJECT_NAME} SHARED memory.cpp)
target_include_directories(${PROJECT_NAME} PRIVATE memory.h)
find_library(log-lib log)
target_link_libraries(${CMAKE_PROJECT_NAME} ${log-lib})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Os -fdata-sections -ffunction-sections")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--gc-sections -Wl,--strip-all")